package com.powernode.service;

import com.github.pagehelper.Page;
import com.powernode.domain.User;
import com.powernode.dto.UserDto;

import java.util.List;

public interface UserService{


    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     */
    User login(String username, String password);

    Page<User> queryForPage(UserDto userDto);

    List<User> queryUser(Integer deleted, Integer role);

    //杰爸爸练习git上传时的伪代码，可忽略
    int selectUser(Integer id);
}
